//
//  BottomButton.m
//  QSBK
//
//  Created by Eric Wang on 4/17/15.
//  Copyright (c) 2015 Eric Wang. All rights reserved.
//

#import "BottomButton.h"

@implementation BottomButton

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        self.bottomButtonType = ButtonTypeDefault;
    }
    return self;
}
- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
    CGFloat x = 0;
    CGFloat y = 0;
    CGFloat w = contentRect.size.width/2;
    CGFloat h = contentRect.size.height;
    
    return CGRectMake(x, y,w , h);
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect
{
    CGFloat x = contentRect.size.width/2;
    CGFloat y = 0;
    CGFloat w = contentRect.size.width/2;
    CGFloat h = contentRect.size.height;
    
    return CGRectMake(x, y, w, h);
}
@end
